<template>
  <div class="main" style="overflow: hidden">
    <div class="mianbox">
      <div class="bannerbox">
        <div style="margin: 0 auto; display: flex">
          <div
            v-if="adObj.index_top_couplet"
            class="leftpic"
            :class="show ? 'leftIspositon' : ''"
          >
            <img
              class="newImGdUIX"
              @click="
                $router.push({
                  path: '/highshop',
                  query: {
                    id: adObj.index_top_couplet[0].storeId,
                  },
                })
              "
              :src="adObj.index_top_couplet[0].imageUrl[0]"
              alt=""
              style="width: 100%; cursor: pointer; height: 3.86rem"
            />
          </div>
          <div class="main">
            <div class="Carousel">
              <div
                class="middlelist"
                v-if="ismiddletrue"
                @mouseleave="ismiddletrue = false"
              >
                <div

                  v-for="item in typechildren"
                  :key="item.id"
                  style="margin: 0.1rem 0"
                  v-if="item.showStatus"
                >
                  <div class="towTitle"  @click="
                        $router.push({
                          path: '/commodity',
                          query: {
                            categoryId: item.id,
                          },
                        })
                      ">{{ item.name }}</div>
                  <div
                    style="display: flex; margin-top: 0.12rem; flex-wrap: wrap"
                  >
                    <div
                      @click="
                        $router.push({
                          path: '/commodity',
                          query: {
                            categoryId: item1.id,
                          },
                        })
                      "
                      class="newTitle"
                      v-for="item1 in item.children"
                      :key="item1.id"
                      v-if="item1.showStatus"
                    >
                      {{ item1.name }}
                    </div>

                    <div></div>
                  </div>
                </div>
              </div>
              <div class="leftbox">
                <div class="toptext">属性类目</div>
                <div
                  class="item"
                  v-for="item in typeList"
                  @mouseover="typeShow(item)"
                  :key="item.id"
                  v-if="item.showStatus"
                >
                  <div>
                    <div class="titleBox">{{ item.name }}</div>
                    <div class="numBox">{{ item.account }}款</div>
                  </div>
                  <div class="rightIcon">
                    <i class="el-icon-arrow-right"></i>
                  </div>
                </div>
              </div>
              <div class="map">
                <el-carousel
                  :interval="3000"
                  arrow="always"
                  style="height: 100%"
                >
                  <div v-if="adObj.index_rotation_hart">
                    <el-carousel-item
                      v-for="item in adObj.index_rotation_hart"
                      :key="item.id"
                    >
                      <router-link
                        :to="{
                          path: '/highshop',
                          query: {
                            id: item.storeId,
                          },
                        }"
                        target="_blank"
                      >
                        <img
                          :src="item.imageUrl"
                          alt=""
                          style="height: 3.86rem; width: 100%; cursor: pointer"
                        />
                      </router-link>
                    </el-carousel-item>
                  </div>
                </el-carousel>
              </div>
              <div class="rightbox">
                <div class="top">
                  <img
                    src="../../static/bannerimg/king.png"
                    alt=""
                    style="margin-right: 0.1rem"
                  />
                  商家排行榜
                </div>
                <div class="bottom">
                  <div
                    @click="
                      $router.push({
                        path: '/highshop',
                        query: {
                          id: item.storeId,
                        },
                      })
                    "
                    class="item"
                    v-for="(item, index) in storeList"
                    :key="index"
                  >
                    <img
                      v-if="index == 0"
                      src="../../static/bannerimg/one.png"
                      alt=""
                      style="margin-right: 0.08rem"
                    />
                    <img
                      v-if="index == 1"
                      src="../../static/bannerimg/two.png"
                      alt=""
                      style="margin-right: 0.08rem"
                    />
                    <img
                      v-if="index == 2"
                      src="../../static/bannerimg/three.png"
                      alt=""
                      style="margin-right: 0.08rem"
                    />
                    <span class="rightNum" v-if="index > 2">{{
                      index + 1
                    }}</span>
                    {{ item.storeName }}
                  </div>
                </div>
              </div>
            </div>
          </div>
          <div
            class="leftpic"
            v-if="adObj.index_top_couplet"
            :class="show ? 'rightIspositon' : ''"
          >
            <img
              class="newImGdUIX"
              @click="
                $router.push({
                  path: '/highshop',
                  query: {
                    id: adObj.index_top_couplet[0].storeId,
                  },
                })
              "
              :src="adObj.index_top_couplet[0].imageUrl[1]"
              alt=""
              style="width: 100%; cursor: pointer; height: 3.86rem"
            />
          </div>
        </div>
      </div>
      <div class="shoplistbox">
        <div class="top" v-if="adObj.index_popular_store">
          <div class="title">
            人气<span
              style="
                color: #ec6c15;
                font-size: 0.24rem;
                display: inline-block;
                font-weight: 600;
              "
              >推荐</span
            >
            <span class="rqTitle"> {{homeGGY[0].value}}</span>
          </div>
          <el-carousel
            :interval="500000"
            arrow="never"
            style="height: 3.2rem; width: 100%"
          >
            <el-carousel-item>
              <div class="cards">
                <div
                  class="carditem"
                  v-for="item in adObj.index_popular_store"
                  :key="item.id"
                  @click="
                    $router.push({
                      path: '/highshop',
                      query: {
                        id: item.storeId,
                      },
                    })
                  "
                >
                  <img
                    :src="item.imageUrl"
                    alt=""
                    style="width: 100%; height: 100%"
                    class="imgBox"
                  />
                  <div class="titlebox">
                    <div class="title">{{ item.storeName }}</div>
                    <div class="name">{{ item.text }}</div>
                  </div>
                </div>
              </div>
            </el-carousel-item>
          </el-carousel>
        </div>
        <div class="middle" v-if="adObj.index_popular_product">
          <div
            @click="
              $router.push({
                path: '/detail',
                query: {
                  id: item.productId,
                },
              })
            "
            class="imgboxs"
            v-for="item in adObj.index_popular_product"
            :key="item.id"
          >
            <div class="topimg">
              <img
                :src="item.productPicture"
                alt=""
                style="width: 100%; height: 100%"
              />
            </div>
            <div class="Price">
              <div class="leftprice" v-if="token">
                ￥{{ token ? item.productPrice : "登陆看价" }}
              </div>
              <div class="leftprice leftpriceS" v-else>
                {{ token ? item.productPrice : "登陆看价" }}
              </div>
              <div class="triangle"></div>
              <span
                style="font-size: 0.16rem; color: #999999; margin-left: 0.1rem"
                >分销：{{ item.productSales }}</span
              >
            </div>
            <div class="bottomtitle">{{ item.productName }}</div>
          </div>
        </div>
        <div class="bottom" v-if="adObj.index_popular_banner">
          <img
            @click="
              $router.push({
                path: '/highshop',
                query: {
                  id: adObj.index_popular_banner[0].storeId,
                },
              })
            "
            :src="adObj.index_popular_banner[0].imageUrl"
            alt=""
            style="width: 100%; cursor: pointer"
          />
        </div>
      </div>
      <div class="sells">
        <div class="title">
          实力<span class="baomai">爆卖</span>
          <span class="xiaozi">{{homeGGY[1].value}}</span>
          <span class="rightTxte" @click="$router.push('/commodity')">更多诚信商家货源>></span>
        </div>
        <div class="card" v-if="adObj.index_sell_left">
          <div class="leftadvertising">
            <el-carousel
              :interval="3000"
              arrow="never"
              style="height: 100%; width: 1.8rem"
              indicator-position="none"
            >
              <el-carousel-item
                style="height: 100%; width: 100%"
                v-for="item in adObj.index_sell_left"
                :key="item.id"
              >
                <div style="height: 100%">
                  <div style="margin-left: 0; height: 100%">
                    <router-link
                      :to="{
                        path: '/highshop',
                        query: {
                          id: item.storeId,
                        },
                      }"
                      target="_blank"
                    >
                      <img
                        :src="item.imageUrl"
                        alt=""
                        style="width: 100%; height: 100%; cursor: pointer"
                        class="imgBox"
                      />
                    </router-link>
                    <!-- <img
                      @click="
                        $router.push({
                          path: '/highshop',
                          query: {
                            id: item.storeId,
                          },
                        })
                      "
                      :src="item.imageUrl"
                      alt=""
                      style="width: 100%; height: 100%; cursor: pointer"
                      class="imgBox"
                    /> -->
                  </div>
                </div>
              </el-carousel-item>
            </el-carousel>
            <!-- <img
              :src="adObj.index_sell_left[0].imageUrl"
              alt=""
              style="width: 100%; height: 100%"
            /> -->
          </div>
          <div class="carditem" v-if="adObj.index_sell_product">
            <div v-for="item in adObj.index_sell_product" :key="item.id">
              <Card :item="item" height="auto"></Card>
            </div>
          </div>
        </div>
      </div>
      <div class="sellsbottom">
        <div class="title">
          商家<span class="chengText">直供</span>
          <span class="remTetx">{{homeGGY[2].value}}</span>
          <span class="rightText" @click="$router.push('/commodity')">更多热销款式推荐>></span>
        </div>
        <div class="card">
          <div class="carditem" v-if="adObj.index_direct_supply_product">
            <div
              v-for="item in adObj.index_direct_supply_product"
              :key="item.id"
            >
              <Card
                :type="true"
                :width="'2.1'"
                height="2.1"
                :bottom="'0.2'"
                :boxheight="'4.2'"
                :item="item"
                v-if="!item.isStore"
              ></Card>

              <div class="guanggao" v-else>
                <img
                  class="newImgbOX"
                  @click="
                    $router.push({
                      path: '/highshop',
                      query: {
                        id: item.storeId,
                      },
                    })
                  "
                  :src="item.imageUrl"
                  alt=""
                  style="width: 100%; height: 4.27rem"
                />
              </div>
            </div>
          </div>
        </div>
      </div>
      <div style="width: 100%" v-if="adObj.index_popular_down_banner">
        <div class="endbox" v-for="(item, index) in 3" :key="index">
          <img
            v-if="index == 0"
            :src="adObj.index_popular_down_banner[0].imageUrl"
            alt=""
            style="width: 100%; cursor: pointer"
            @click="
              $router.push({
                path: '/highshop',
                query: {
                  id: adObj.index_popular_down_banner[0].storeId,
                },
              })
            "
          />
          <div class="carditem" v-if="index == 0">
            <Card
              v-for="item1 in adObj.index_source_product_up"
              :width="'2.2'"
              height="2.2"
              :bottom="'0.2'"
              :boxheight="'4.1'"
              :type="true"
              :item="item1"
              :key="item1.id"
            ></Card>
          </div>
          <img
            v-if="index == 1"
            :src="adObj.index_popular_down_banner[1].imageUrl"
            @click="
              $router.push({
                path: '/highshop',
                query: {
                  id: adObj.index_popular_down_banner[1].storeId,
                },
              })
            "
            alt=""
            style="width: 100%; cursor: pointer"
          />
          <div class="carditem" v-if="index == 1">
            <Card
              v-for="item1 in adObj.index_source_product_middle"
              :width="'2.2'"
              height="2.2"
              :bottom="'0.2'"
              :boxheight="'4.1'"
              :type="true"
              :item="item1"
              :key="item1.id"
            ></Card>
          </div>
          <img
            @click="
              $router.push({
                path: '/highshop',
                query: {
                  id: adObj.index_popular_down_banner[2].storeId,
                },
              })
            "
            v-if="index == 2"
            :src="adObj.index_popular_down_banner[2].imageUrl"
            alt=""
            style="width: 100%; cursor: pointer"
          />
          <div class="carditem" v-if="index == 2">
            <Card
              v-for="item1 in adObj.index_source_product_down"
              :width="'2.2'"
              height="2.2"
              :bottom="'0.2'"
              :boxheight="'4.2'"
              :type="true"
              :item="item1"
              :key="item1.id"
            ></Card>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import {
  getListAndAccount,
  storeTop5,
  getAllAd,
  selectCategorysY,
  selectSystemSettingInfoByName
} from "../../api/home/index";
import Card from "./components/Card.vue";
import { getToken, removeToken } from "@/utils/auth";
export default {
  components: {
    Card,
  },

  data() {
    return {
      typechildren: [],
      typeList: [],
      popularitylist: [],
      middlelist: [],
      ismiddletrue: false,
      homeData: {},
      storeList: [],
      adObj: false,
      loading: false,
      scrollTop: 0,
      show: false,
      token: false,
      homeGGY:[]
    };
  },
  // created () {
  //   this.getListAndAccount()
  //   this.storeTop5()
  //   this.getAllAdB()
  //   this.getAllAdC()
  //   // this.getAllAdD()
  //   this.getAllAdE()
  //   this.getAllAdF()
  //   this.getAllAdG()
  //   this.getAllAdS()
  //   this.getAllAdZ()
  //   this.getAllAd()
  //   this.token = getToken()
  // },
  created() {
    this.selectSystemSettingInfoByName()
    this.getListAndAccount();
    this.storeTop5();
    this.getAllAdB();
    this.getAllAdC();
    // this.getAllAdD()
    this.getAllAdE();
    this.getAllAdF();
    this.getAllAdG();
    this.getAllAdS();
    this.getAllAdZ();
    this.getAllAd();
    this.token = getToken();
    
  },
  mounted() {
    window.addEventListener("scroll", this.scrolling, true);
  },
  methods: {
    //获取首页广告语
    selectSystemSettingInfoByName() {
      selectSystemSettingInfoByName({
        keyWord: "首页广告语",
      }).then((data) => {
        this.homeGGY =JSON.parse( data.data.value);
      });
    },
    getAllAdB() {
      getAllAd({
        adType: 0,
        adPosition: "index_top_couplet",
      }).then((data) => {
        this.adObj = { ...this.adObj, ...data.data };
        this.adObj.index_top_couplet[0].imageUrl =
          this.adObj.index_top_couplet[0].imageUrl.split(",");
      });
    },
    getAllAdC() {
      getAllAd({
        adType: 0,
        adPosition: "index_rotation_hart",
      }).then((data) => {
        this.adObj = { ...this.adObj, ...data.data };
      });
    },
    // getAllAdD () {
    //   getAllAd({
    //     adType: 0,
    //     adPosition: 'index_store_ranking_list'
    //   }).then((data) => {
    //     this.adObj = { ...this.adObj, ...data.data }
    //   })
    // },
    getAllAdE() {
      getAllAd({
        adType: 0,
        adPosition: "index_popular_store",
      }).then((data) => {
        this.adObj = { ...this.adObj, ...data.data };
      });
    },
    getAllAdF() {
      getAllAd({
        adType: 0,
        adPosition: "index_sell_left",
      }).then((data) => {
        let arr = [];

        this.adObj = { ...this.adObj, ...data.data };
      });
    },
    getAllAdG() {
      getAllAd({
        adType: 0,
        adPosition: "index_popular_banner",
      }).then((data) => {
        this.adObj = { ...this.adObj, ...data.data };
      });
    },
    getAllAdS() {
      getAllAd({
        adType: 0,
        adPosition: "index_popular_product",
      }).then((data) => {
        this.adObj = { ...this.adObj, ...data.data };
      });
    },
    getAllAdZ() {
      getAllAd({
        adType: 0,
        adPosition: "index_sell_product",
      }).then((data) => {
        this.adObj = { ...this.adObj, ...data.data };
      });
    },
    // 获取广告
    getAllAd() {
      getAllAd({
        adType: 0,
      }).then((data) => {
        let arr = [];
        data.data.index_sell_left.forEach((item) => {
          arr.push(item);
        });
        arr.forEach((item) => {
          data.data.index_sell_left.push(item);
        });
        this.adObj = data.data;
        const index = 0;
        this.adObj.index_top_couplet[0].imageUrl =
          this.adObj.index_top_couplet[0].imageUrl.split(",");

        const newArr = [];
        let num = 0;
        for (let i = 0; i < 12; i++) {
          const arr = [];
          for (let j = 0; j < 4; j++) {
            arr.push(this.adObj.index_direct_supply_product[num]);
            num = num + 1;
          }
          newArr.push(arr);
        }
        const list = [];
        newArr.forEach((item, index) => {
          const num1 = parseInt(Math.random() * (5 + 1));
          item.splice(num1, 0, this.adObj.index_direct_supply_store[index]);
          item.forEach((item1) => {
            list.push(item1);
          });
        });
        this.adObj.index_direct_supply_product = list;
      });
    },
    // 监听滚动事件
    scrolling() {
      this.scrollTop = document.body.querySelector("#app").scrollTop;
      if (this.scrollTop > 280) {
        this.show = true;
      } else {
        this.show = false;
      }
    },
    // 商家排行
    storeTop5() {
      storeTop5().then((data) => {
        this.storeList = data.data;
      });
    },
    // 分类显示
    typeShow(item) {
      this.typechildren = item.children;
      this.ismiddletrue = true;
    },
    // 获取首页商品分类
    getListAndAccount() {
      selectCategorysY().then((data) => {
        this.typeList = data.data;
      });
    },
  },
};
</script>

<style scoped lang="scss">
/deep/ .el-carousel--horizontal {
  overflow: hidden;
}

::v-deep .el-carousel__arrow--left {
  border-radius: 0 0.2rem 0.2rem 0 !important;
  left: 0;
}

::v-deep .el-carousel__arrow--right {
  border-radius: 0.2rem 0 0 0.2rem !important;
  right: 0;
}

::v-deep .el-carousel__container {
  height: 3.86rem;
}

.main {
  width: 100%;
  // height: 100%;
  background-color: #f5f7f9;

  .mianbox {
    margin: 0 auto;
    width: 12rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;

    .bannerbox {
      width: 100vw;
      background: linear-gradient(270deg, #ffcbcd 40%, #ffd3d5 63%);
      height: 3.86rem;
      display: flex;
      .leftpic {
        width: 120px;
        height: 430px;
      }

      .leftIspositon {
        position: fixed;
        top: 0.65rem;
        left: 1.9rem;
      }
      .rightIspositon {
        position: fixed;
        top: 0.65rem;
        right: 1.9rem;
      }

      .main {
        // width: 16.4rem;
        width: 12rem;
        height: 100%;
        margin: 0 auto;
        display: flex;
        // background-color: green;
        .map {
          // flex: 1;
          width: 10rem;
        }

        .Carousel {
          position: relative;
          width: 12rem;
          height: 100%;
          background: linear-gradient(270deg, #ffcbcd 40%, #ffd3d5 63%);
          display: flex;
          justify-content: center;
          align-items: end;

          .middlelist {
            position: absolute;
            width: 7.7rem;
            height: 3.53rem;
            top: 0;
            left: 1.4rem;
            background-color: white;
            z-index: 9999999999999;
            padding: 0.14rem 0.73rem 0.2rem 0.24rem;
            overflow-y: auto;

            .towTitle {
              cursor: pointer;
              font-family: PingFang SC;
              font-size: 0.14rem;
              font-weight: 700;
              color: #000000;
              margin: 0.1rem 0;
              margin-right: 0.32rem;
            }

            .towTitle:hover {
              color: #ec6c15;
            }

            .sanTitle {
              font-family: PingFang SC;
              font-size: 0.14rem;
              font-weight: 500;
              color: #000000;
              margin-right: 0.32rem;
            }

            .newTitle {
              font-family: PingFang SC;
              font-size: 0.14rem;
              font-weight: 500;
              color: #666666;
              margin-right: 0.32rem;
              margin-bottom: 0.2rem;
              cursor: pointer;
            }

            .newTitle:hover {
              color: #ec6c15;
            }

            .chengTitle {
              font-family: PingFang SC;
              font-size: 0.14rem;
              font-weight: 500;
              color: #ec6c15;
              margin-right: 0.32rem;
            }
          }

          .leftbox {
            width: 1.6rem;
            height: 100%;
            border: 0.01rem solid rgba(0, 0, 0, 0);
            background: #ffffff;

            .toptext {
              font-family: PingFang SC;
              text-align: center;
              line-height: 0.46rem;
              color: #000000;
              font-size: 0.16rem;
              font-weight: bold;
              width: 100%;
              height: 0.46rem;
              border: 0.01rem solid rgba(0, 0, 0, 0);
              background: #e8eef1;
            }

            .item {
              cursor: pointer;
              padding: 0 0.13rem;
              display: flex;
              align-items: center;
              height: 0.68rem;
              width: calc(100%-0.26rem);
              justify-content: space-between;

              .titleBox {
                font-family: PingFang SC;
                font-size: 0.16rem;
                color: #000000;
              }

              .numBox {
                font-family: PingFang SC;
                font-size: 0.16rem;
                color: #999999;
                margin-top: 0.06rem;
              }

              .rightIcon {
                font-family: PingFang SC;
                font-size: 0.16rem;
                color: #000000;
                font-weight: bold;
              }
            }
          }

          .rightbox {
            width: 2rem;
            height: 3.3rem;
            background-color: #fff;
            border: 0.01rem solid rgba(0, 0, 0, 0);
            border-radius: 0.2rem 0.2rem 0 0;
            padding: 0.17rem 0.085rem 0.2716rem 0.105rem;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;

            .top {
              display: flex;
              justify-content: center;
              align-items: center;
              font-family: PingFang SC;
              font-size: 0.16rem;
              font-weight: bold;
              color: #fdbb4a;
              margin-bottom: 0.18rem;
            }

            .bottom {
              flex: 1;
              background: #f5f7f9;
              width: 100%;
              height: 100%;

              .item {
                cursor: pointer;
                font-family: PingFang SC;
                font-size: 0.16rem;
                font-weight: 500;
                display: flex;
                align-items: center;
                // justify-content: center;
                width: 1.613rem;
                height: 0.1963rem;
                padding: 0.0628rem 0 0.069rem 0.087rem;
                text-align: center;
                font-weight: 500;
                color: #000000;

                .rightNum {
                  width: 0.2rem;
                  height: 0.2rem;
                  border-radius: 50%;
                  background: #e0dfed;
                  font-family: OPPOSans;
                  font-size: 0.12rem;
                  font-weight: bold;
                  text-align: center;
                  line-height: 0.2rem;
                  margin-right: 0.08rem;
                }
              }
            }
          }
        }
      }
    }

    .shoplistbox {
      width: 12rem;
      height: 100%;
      margin-top: 0.2rem;
      margin-bottom: 0.2rem;

      .top {
        margin-bottom: 0.2rem;
        background-color: #fff;
        padding: 0.22rem 0.1rem 0.1rem 0.1rem;

        .title {
          display: flex;
          // justify-content: center;
          align-items: center;
          font-family: HYk1gj-regular;
          font-size: 0.24rem;
          font-weight: 600;
          color: #000000;

          .rqTitle {
            font-family: SimSun;
            font-size: 0.16rem;
            margin-top: 0.03rem;
            margin-left: 0.2rem;
            font-weight: normal;
            color: #999999;
          }
        }

        /deep/ .el-carousel__indicators--horizontal {
          bottom: -10px;
        }

        /deep/ .el-carousel--horizontal {
          overflow: hidden;
        }

        .cards {
          width: 100%;
          display: flex;
          // justify-content: space-between;
          align-items: center;

          .carditem {
            cursor: pointer;
            margin-left: 0.1rem;
            position: relative;
            margin-left: 0.08rem;
            width: 1.9rem;
            height: 2.77rem;
            background-color: pink;
            transition: all 0.6s;
            // margin-right: 0.08rem;
            margin-top: 0.2rem;

            .titlebox {
              display: flex;
              flex-direction: column;
              justify-content: center;
              align-items: center;
              position: absolute;
              bottom: 0.1rem;
              left: 0.1rem;
              width: 1.72rem;
              height: 0.55rem;
              opacity: 0.7;
              background: #ffffff;

              .title {
                font-family: PingFang SC;
                font-size: 0.16rem;
                font-weight: bold;
                color: #000000;
              }

              .name {
                font-family: OPPOSans;
                font-size: 0.12rem;
                font-weight: normal;
                line-height: normal;
                text-align: center;
                letter-spacing: 0em;
                opacity: 0.7;

                /* 正文灰 */
                color: #666666;
              }
            }
          }

          .carditem:hover {
            background: #fff;
            transform: scale(1.05);
            box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);

            .titlebox {
              background: rgba(253, 187, 74, 0.7);
              opacity: 1;

              .title {
                color: #fff;
                opacity: 1;
              }

              .name {
                color: #fff;
                opacity: 1;
              }
            }
          }
        }
      }

      .middle {
        height: 3.5rem;
        opacity: 1;
        padding: 0.2rem 0.12rem 0.2rem 0.1rem;
        background: #ffffff;
        box-sizing: border-box;
        border: 0.01rem solid rgba(0, 0, 0, 0);
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 0.2rem;
        padding-left: 0.04rem;
        padding-right: 0.08rem;

        .imgboxs {
          display: flex;
          flex-direction: column;
          // justify-content: center;
          align-items: center;
          width: 2.5rem;
          height: 3rem;
          background: #f5f7f9;
          box-sizing: border-box;
          border: 0.01rem solid rgba(0, 0, 0, 0);
          margin-left: 0.1rem;
          // transform: scale(1);
          transition: all 0.2s linear;
          overflow: hidden;

          .topimg {
            transform: scale(1);
            transition: all 0.6s;
            width: 100%;
            height: 1.85rem;
            // border: 1px solid red;
          }

          .Price {
            display: flex;
            // justify-content: space-around;
            align-items: center;
            width: 1.6rem;
            // height: 0.5rem;
            margin-top: 10px;
            border: 0.01rem solid #ff6721;

            .triangle {
              width: 0;
              height: 0;
              border-style: solid;
              border-width: 0.32rem 0.22rem 0 0;
              border-color: #fd4422 transparent transparent transparent;
            }

            .leftprice {
              position: relative;
              font-size: 0.16rem;
              color: #ffffff;
              background-color: #fd4422;
              height: 100%;
              width: 0.6rem;
              line-height: 0.32rem;
            }
            .leftpriceS {
              font-size: 0.12rem;
              padding-left: 0.1rem;
            }

            // .leftprice::before {
            //   content: "";
            //   position: absolute;
            //   border: 0.148rem solid;
            //   border-color: transparent #fd4422 transparent transparent;
            //   top: -0.16rem;
            //   left: 0.401rem;
            //   width: 0.03rem;
            //   height: 0.02rem;
            //   transform: rotate(45deg);
            // }
          }

          .bottomtitle {
            font-family: OPPOSans;
            font-size: 0.16rem;
            width: 1.5rem;
            overflow: hidden; //超出的文本隐藏
            text-overflow: ellipsis; //溢出用省略号显示
            white-space: nowrap; //溢出不换行
            font-weight: normal;
            line-height: normal;
            text-align: center;
            letter-spacing: 0em;
            // margin-top: 0.1rem;
            /* 标题正文黑 */
            margin-top: 0.1rem;
            color: #000000;
            margin-bottom: 0.1rem;
          }
        }

        .imgboxs:hover {
          cursor: pointer;
          background: #fff;
          box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
          transform: translate3d(0, -5px, 0);
        }
        .topimg:hover {
          // transform: scale(1.1);
          transform: scale(1.05);
        }
      }

      .bottom {
        height: 1.5rem;
      }
    }

    .sells {
      height: 8rem;
      background-color: #fff;
      width: 100%;
      margin-bottom: 0.2rem;

      .title {
        display: flex;

        align-items: center;
        width: calc(100%-0.42rem);
        height: 0.19rem;
        // background-color: green;
        padding: 0.21rem 0.26rem 0.21rem 0.16rem;
        font-family: HYk1gj-regular;
        font-size: 0.24rem;
        font-weight: 600;

        .baomai {
          color: #ec6c15;
          font-size: 0.24rem;
          display: inline-block;
          font-weight: 600;
        }

        .xiaozi {
          font-family: SimSun;
          font-size: 0.16rem;
          margin-top: 0.03rem;
          margin-left: 0.2rem;
          font-weight: normal;
          color: #999999;
        }

        .rightTxte {
          float: right;
          font-family: SimSun;
          font-size: 0.16rem;
          color: #999999;
          flex: 1;
          text-align: right;
          cursor: pointer;
        }
      }

      .card {
        width: calc(100%-0.24rem);

        // background-color: pink;
        display: flex;
        padding: 0 0.14rem 0.3rem 0.1rem;

        .leftadvertising {
          width: 1.8rem;
          height: 7.1rem;
          background-color: green;
          /deep/ .el-carousel__container {
            height: 100%;
          }
        }

        .carditem {
          cursor: pointer;
          display: flex;
          justify-content: space-between;
          // align-items: center;
          flex-wrap: wrap;
          width: 11.91rem;
          margin-left: 0.1rem;
        }
      }
    }

    .sellsbottom {
      // height: 4.45rem;
      background-color: #fff;
      width: 100%;
      margin-bottom: 0.2rem;

      .title {
        display: flex;

        align-items: center;
        width: calc(100%-0.42rem);
        height: 0.19rem;
        // background-color: green;
        padding: 0.21rem 0.26rem 0.21rem 0.16rem;
        font-family: HYk1gj-regular;
        font-size: 0.24rem;
        font-weight: 600;

        .chengText {
          color: #ec6c15;
          font-size: 0.24rem;
          display: inline-block;
          font-weight: 600;
        }

        .remTetx {
          font-family: SimSun;
          font-size: 0.16rem;
          margin-top: 0.03rem;
          margin-left: 0.2rem;
          font-weight: normal;
          color: #999999;
        }

        .rightText {
          float: right;
          font-family: SimSun;
          font-size: 0.16rem;
          color: #999999;
          flex: 1;
          text-align: right;
          cursor: pointer;
        }
      }

      .card {
        width: calc(100%-0.24rem);

        // background-color: pink;
        display: flex;
        // padding: 0 0.14rem 0.3rem 0.1rem;

        .carditem {
          cursor: pointer;
          display: flex;
          justify-content: space-evenly;
          // align-items: center;
          flex-wrap: wrap;
          width: 100%;
          margin-left: 0.1rem;

          .guanggao {
            width: 2.4rem;
            height: 4rem;
            margin: 0 0.06rem;
          }
        }
      }
    }

    .endbox {
      width: 100%;
      // height: 5.48rem;
      background-color: white;
      margin-bottom: 0.2rem;

      .carditem {
        cursor: pointer;
        margin-top: -0.1rem;
        display: flex;
        justify-content: space-evenly;
        // align-items: center;
        flex-wrap: wrap;
        // width: 10.91rem;
        margin-left: 0.1rem;
      }
    }
  }
}
</style>
<style lang="scss" scoped>
@media screen and (max-width: 1350px) {
  .leftIspositon {
    left: 0 !important;
    img {
      height: 301px !important;
    }
  }
  .newImGdUIX {
    // height: 301px !important;
  }
  .rightIspositon {
    right: 0 !important;
    img {
      height: 301px !important;
    }
  }
  .newImgbOX {
    height: 4.4rem !important;
  }
}
</style>
